Skip to main content
Version: 1.0.6

Get Transactions by Reference Number

The 'Get Transactions by Reference Number' API enables to retrieve the details of specific transaction using the reference number of transaction.

Method: POST

{{URL}}/jsonrpc

Example

Request Parameters
ParameterDescription
methodString
API method that is being called to get transaction details through ledger service.
Constant Value : "TransactionService.GetTransactionsByRef"
idString
Unique ID of API request.
Sample Value : "1"
paramsObject
Container for API parameters.
apiObject
Container for authentication and credential fields.
signature

Mandatory
String
Sign the request payload (params.payload) using private key.
Sample value: "MEQCIAbpxHpdOyBEVlmxPYv7m4Z1OvWJJYw7g7u3GE3T9nmvAiBjKHckSvb1M6O4t7FeWsn2z9Y3dMeYn3HyX/k28ek/Dw=="
keyId

Mandatory
String
Key ID is provided at the time of device registration.
Sample value: "348076"
credential

Mandatory
String
Basic (space) ("<Username>:<apiKey>") as Base64 encoded value to be provided
Sample value: "Basic bmF2eWEubitlbXBAbmV0eGQuY29tOmY1OWIwY2NlOTU4ZTQ1YTc4MGVhZWIzYWVjOWVjZDAx"
payloadObject
Container for request data.
ReferenceIdString
Unique reference ID of the transaction.
Sample Value : "10000000272005"

curl --location --globoff '{{URL}}/jsonrpc' \
--header 'Content-Type: application/json' \
--data '{"method":"TransactionService.GetTransactionsByRef","id":"1","params":{"api":{"signature":"{{signature}}","keyId":"{{ApplicationKeyId}}","credential":"{{Credential}}"},"payload":{"ReferenceId":"10000000272005"}}}'

Body


{
"method": "TransactionService.GetTransactionsByRef",
"id": "1",
"params": {
"api": {
"signature": "{{signature}}",
"keyId": "{{ApplicationKeyId}}",
"credential": "{{Credential}}"
},
"payload": {
"ReferenceId": "10000000272005"
}
}
}

Response: 200

Response Parameters
ParameterDescription
idString
Unique ID of API request
Sample Value : "1"
resultObject
typeEnum
Type of transaction
Valid values:
REMITTANCE,
CARDPAY,
INTERNAL_TRANSFER,
WITHDRAW,
DEPOSIT,
INTERNAL,
EFT,
BILLPAY,
R2P,
VOID,
OPENING_BALANCE,
FEE_REFUND,
ISSUE_CARD,
TAX_REFUND,
BILLPAY_SADAD,
ACH_OUT,
ACH_PULL,
WIRE_OUT,
DISBURSEMENT,
KYC_TRANSACTION,
GL_TRANSFER,
WIRE_DD,
ACH_RETURN,
RTP_OUT,
RTP_REVERSAL,
RTP_IN,
ICS_DEPOSIT,
RTP_RFR_OUT,
RTP_RFR_IN,
FEDNOW_RFP_OUT,
FEDNOW_RFR_OUT
Sample Value : "DEPOSIT"
modeEnum
Mode of transfer
Valid values:
PG,
ACH,
QRCODE,
EFT,
TELLER,
BENEFIT,
CHEQUE
Sample Value : "PG"
StatusEnum
Status of the transaction
Valid values:
COMPLETED,
PENDING,
FAILED,
DECLINED,
REJECTED,
CANCELLED
Sample Value : "PENDING"
ReferenceIdString
Unique reference ID of the transaction
Sample Value : "REF0000000002"
CustomerIdString
Unique ID of the customer
Sample Value : "123465789"
TimeStampString
Date and time transaction is initiated
Sample Value : "2020-04-22T07:44:55-05:00"
TransactionIdString
Unique transaction identification number
Sample Value : "5ea0164ed6571f12242d575c"
creditBoolean
Indicates if transaction is a credit transaction
Sample Value : false
InstructedAmountObject
AmountNumber
Amount of the transaction
Sample Value : 7
CurrencyString
Currency of the transaction
Sample Value : "USD"
FeesArray
Fees[].AmountNumber
Fee amount
Sample Value : 2
Fees[].CurrencyString
Currency of fee
Sample Value : "USD"
TransactionNumberNumber
Unique transaction number assigned
Sample Value : "QA00000000000362"
TaxString
Tax amount
Sample Value : 500
DebtorAccountObject
AccountNumberString
Debtor account number
Sample Value : "98652221851"
InstitutionIdString
Debtor's bank ID
Sample Value : "101115302"
ReferenceString
Reference ID
Sample Value : "txn000013"
PartyObject
AccountVerificationIdString
Account verification ID
Sample Value : "5e9f246bd6571f2280d3d7b4"
KycIdString
KYC check ID
Sample Value : "5e9f1696d6571f272c5bcc0f"
IdentificationTypeEnum
Debtor account type
Valid values:
SAVINGS, CHECKING
Sample Value : "SAVINGS"
CreditorAccountObject
AccountNumberString
Creditor account number
Sample Value : "9865321478"
InstitutionIdString
Creditor bank ID
Sample Value : "011000028"
IdentificationTypeEnum
Creditor account type
Valid values:
SAVINGS, CHECKING
Sample Value : "SAVINGS"
CardNumberString
Creditor card number
Sample Value : "5102589999999913"
ReferenceString
Reference ID
Sample Value : "txn000013"
ExpiryDateString
Card expiry date (YYYY-MM)
Sample Value : "2022-12"
PartyObject
NameString
Full name
Sample Value : "John Deo"
IdentificationString
Identification value
Sample Value : "859630248"
IdentificationTypeEnum
Identification type
Valid values:
SSN, TIN
Sample Value : "SSN"
DateOfBirthString
Date of birth
Sample Value : "19930222"
AddressObject
Line1String
Address line 1
Sample Value : "1200 street"
Line2String
Address line 2
Sample Value : "2nd main road"
TownNameString
City
Sample Value : "Chennai"
PostCodeString
ZIP code
Sample Value : "600042"
StateString
State
Sample Value : "TN"
CountryString
Country
Sample Value : "IN"

{
"id": "1",
"result": {
"type": "DEPOSIT",
"mode": "PG",
"Status": "PENDING",
"ReferenceId": "REF0000000002",
"CustomerId": "123465789",
"TimeStamp": "2020-04-22T07:44:55-05:00",
"TransactionId": "5ea0164ed6571f12242d575c",
"credit": false,
"InstructedAmount": {
"Amount": 7,
"Currency": "USD"
},
"Fees": [
{
"Amount": 2,
"Currency": "USD",
"TransactionNumber": "QA00000000000362",
"Tax": 500
}
],
"DebtorAccount": {
"AccountNumber": "98652221851",
"InstitutionId": "101115302",
"Reference": "txn000013",
"Party": {
"AccountVerificationId": "5e9f246bd6571f2280d3d7b4",
"KycId": "5e9f1696d6571f272c5bcc0f"
},
"IdentificationType": "SAVINGS"
},
"CreditorAccount": {
"AccountNumber": "9865321478",
"InstitutionId": "011000028",
"IdentificationType": "SAVINGS",
"CardNumber": "5102589999999913",
"Reference": "txn000013",
"ExpiryDate": "2022-12",
"Party": {
"Name": "John Deo",
"Identification": "859630248",
"IdentificationType": "SSN",
"DateOfBirth": "19930222",
"Address": {
"Line1": "1200 street",
"Line2": "2nd main road",
"TownName": "chennai",
"PostCode": "600042",
"State": "TN",
"Country": "IN"
}
}
}
},
"jsonrpc": "2.0"
}

Error Codes

Error Codes
Error CodeError MessageRecommended Action
BAD_INPUTID is invalid or missingReferenceId is missing. Please provide a valid Reference Id
UNAUTHORIZEDAccess DeniedAccess Denied. Please Check with Support Team
NOT_FOUND_TRANSACTIONNo transaction found with referencePlease provide a valid Reference Id of a transaction and try again
INVALID_SIGNATUREInvalid SignatureSignature is invalid. Please ensure correct key, algorithm and signature process is followed
NOT_FOUND_USER_DEVICEUser device not foundInvalid Key Id. please provide valid Key ID
BAD_CREDENTIALInvalid CredentialInvalid credential. Please verify the credentials provided.